package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class JsonResult {
    private boolean success=true;
    private String msg;
    //用于返回当前的用户
    private Object user;
    //当登录失败时,使用该方法来封装数据
    public void mark(String msg){
        this.success=false;
        this.msg=msg;
    }
}
